﻿using BestTrader.Cms.ViewModels;
using BestTrader.Cms.ViewModels.WebApi;
using FluentValidation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BestTrader.Cms.WebApi.Validation
{
    public class PageSearchValidation : AbstractValidator<PageSearchInput>
    {

        public PageSearchValidation()
        {
            RuleFor(x => x.CurrentId).GreaterThan(0).WithMessage("当前用户不存在");
            RuleFor(x => x.RoleId).GreaterThan(0).WithMessage("当前用户不存在");
        }

    }

}
